<template>
  <div>
    <h2>欢迎登陆考试系统</h2>
    <div class="info">
      <p>登陆账号为: {{ username }}</p>
      <p>您的身份是：{{ role }}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    username: {
      type: String,
      default: "小赵",
    },
    role: {
      type: String,
      default: "猎人",
    },
  },
};
</script>

<style  scoped>
 h2 {
     margin: 50px;
 }
 .info{
     margin-left: 50px;
     line-height: 2em;
 }
</style>